<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>

</body>
<script>
/*      var Arr=[1,2,3]
	 console.log(Arr.toString());
    var myObj = {
        age: 19,
        'last-name': 'wang',
        firstName: 'xiao ming',
        '': "空值",
        like: {},
        arr: [{value: 0}, {value: 1}],
        fun1() {
            console.log(123);
        }
    }
    console.log(myObj.age);
    console.log(myObj['last-name']);
    console.log(myObj['']);
    console.log(myObj['like']);
    myObj['arr[' + 0 + '].value'] = 'XXXX'
    console.log(myObj['arr[' + 0 + '].value']);
    myObj['fun1'](); */

    /*let Arr=[ ];
    for(let i=0;i<3;i++){
        Arr[i]=i;
    }
    console.log(Arr);*/
    
function fun({name}) {
    console.log(name)
    return true;
}
let boy={
    name:'小明',
    age:18
}
fun(boy);

</script>

</html>